﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FF7 RID: 4087
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournDoorInfo : IMessage<RogueTournDoorInfo>, IMessage, IEquatable<RogueTournDoorInfo>, IDeepCloneable<RogueTournDoorInfo>, IBufferMessage
	{
		// Token: 0x170033B5 RID: 13237
		// (get) Token: 0x0600B6D4 RID: 46804 RVA: 0x001ED94D File Offset: 0x001EBB4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournDoorInfo> Parser
		{
			get
			{
				return RogueTournDoorInfo._parser;
			}
		}

		// Token: 0x170033B6 RID: 13238
		// (get) Token: 0x0600B6D5 RID: 46805 RVA: 0x001ED954 File Offset: 0x001EBB54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournDoorInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170033B7 RID: 13239
		// (get) Token: 0x0600B6D6 RID: 46806 RVA: 0x001ED966 File Offset: 0x001EBB66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournDoorInfo.Descriptor;
			}
		}

		// Token: 0x0600B6D7 RID: 46807 RVA: 0x001ED96D File Offset: 0x001EBB6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDoorInfo()
		{
		}

		// Token: 0x0600B6D8 RID: 46808 RVA: 0x001ED975 File Offset: 0x001EBB75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDoorInfo(RogueTournDoorInfo other) : this()
		{
			this.bPFBJKCFLKH_ = other.bPFBJKCFLKH_;
			this.rogueDoorNextRoomType_ = other.rogueDoorNextRoomType_;
			this.enterNextLayer_ = other.enterNextLayer_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B6D9 RID: 46809 RVA: 0x001ED9B2 File Offset: 0x001EBBB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDoorInfo Clone()
		{
			return new RogueTournDoorInfo(this);
		}

		// Token: 0x170033B8 RID: 13240
		// (get) Token: 0x0600B6DA RID: 46810 RVA: 0x001ED9BA File Offset: 0x001EBBBA
		// (set) Token: 0x0600B6DB RID: 46811 RVA: 0x001ED9C2 File Offset: 0x001EBBC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BPFBJKCFLKH
		{
			get
			{
				return this.bPFBJKCFLKH_;
			}
			set
			{
				this.bPFBJKCFLKH_ = value;
			}
		}

		// Token: 0x170033B9 RID: 13241
		// (get) Token: 0x0600B6DC RID: 46812 RVA: 0x001ED9CB File Offset: 0x001EBBCB
		// (set) Token: 0x0600B6DD RID: 46813 RVA: 0x001ED9D3 File Offset: 0x001EBBD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueDoorNextRoomType
		{
			get
			{
				return this.rogueDoorNextRoomType_;
			}
			set
			{
				this.rogueDoorNextRoomType_ = value;
			}
		}

		// Token: 0x170033BA RID: 13242
		// (get) Token: 0x0600B6DE RID: 46814 RVA: 0x001ED9DC File Offset: 0x001EBBDC
		// (set) Token: 0x0600B6DF RID: 46815 RVA: 0x001ED9E4 File Offset: 0x001EBBE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool EnterNextLayer
		{
			get
			{
				return this.enterNextLayer_;
			}
			set
			{
				this.enterNextLayer_ = value;
			}
		}

		// Token: 0x0600B6E0 RID: 46816 RVA: 0x001ED9ED File Offset: 0x001EBBED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournDoorInfo);
		}

		// Token: 0x0600B6E1 RID: 46817 RVA: 0x001ED9FC File Offset: 0x001EBBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournDoorInfo other)
		{
			return other != null && (other == this || (this.BPFBJKCFLKH == other.BPFBJKCFLKH && this.RogueDoorNextRoomType == other.RogueDoorNextRoomType && this.EnterNextLayer == other.EnterNextLayer && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B6E2 RID: 46818 RVA: 0x001EDA58 File Offset: 0x001EBC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BPFBJKCFLKH != 0U)
			{
				num ^= this.BPFBJKCFLKH.GetHashCode();
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				num ^= this.RogueDoorNextRoomType.GetHashCode();
			}
			if (this.EnterNextLayer)
			{
				num ^= this.EnterNextLayer.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B6E3 RID: 46819 RVA: 0x001EDAC9 File Offset: 0x001EBCC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B6E4 RID: 46820 RVA: 0x001EDAD1 File Offset: 0x001EBCD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B6E5 RID: 46821 RVA: 0x001EDADC File Offset: 0x001EBCDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BPFBJKCFLKH != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BPFBJKCFLKH);
			}
			if (this.EnterNextLayer)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.EnterNextLayer);
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RogueDoorNextRoomType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B6E6 RID: 46822 RVA: 0x001EDB54 File Offset: 0x001EBD54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BPFBJKCFLKH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BPFBJKCFLKH);
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueDoorNextRoomType);
			}
			if (this.EnterNextLayer)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B6E7 RID: 46823 RVA: 0x001EDBB8 File Offset: 0x001EBDB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournDoorInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BPFBJKCFLKH != 0U)
			{
				this.BPFBJKCFLKH = other.BPFBJKCFLKH;
			}
			if (other.RogueDoorNextRoomType != 0U)
			{
				this.RogueDoorNextRoomType = other.RogueDoorNextRoomType;
			}
			if (other.EnterNextLayer)
			{
				this.EnterNextLayer = other.EnterNextLayer;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B6E8 RID: 46824 RVA: 0x001EDC1C File Offset: 0x001EBE1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B6E9 RID: 46825 RVA: 0x001EDC28 File Offset: 0x001EBE28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 56U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.RogueDoorNextRoomType = input.ReadUInt32();
						}
					}
					else
					{
						this.EnterNextLayer = input.ReadBool();
					}
				}
				else
				{
					this.BPFBJKCFLKH = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040049DF RID: 18911
		private static readonly MessageParser<RogueTournDoorInfo> _parser = new MessageParser<RogueTournDoorInfo>(() => new RogueTournDoorInfo());

		// Token: 0x040049E0 RID: 18912
		private UnknownFieldSet _unknownFields;

		// Token: 0x040049E1 RID: 18913
		public const int BPFBJKCFLKHFieldNumber = 5;

		// Token: 0x040049E2 RID: 18914
		private uint bPFBJKCFLKH_;

		// Token: 0x040049E3 RID: 18915
		public const int RogueDoorNextRoomTypeFieldNumber = 12;

		// Token: 0x040049E4 RID: 18916
		private uint rogueDoorNextRoomType_;

		// Token: 0x040049E5 RID: 18917
		public const int EnterNextLayerFieldNumber = 7;

		// Token: 0x040049E6 RID: 18918
		private bool enterNextLayer_;
	}
}
